
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:rfid/main.dart';

import '../page/setting_page.dart';

deviceNameWidget({bool setting = false}){
  return InkWell(
    onTap: (){
      if(setting){
        Get.to(() => const Setting());
      }
    },
    child: Text('${(settingEntity.deviceName==''||settingEntity.deviceName==null)?'       ':settingEntity.deviceName}',style: TextStyle(color: Colors.white,fontSize: 12.sp)),
  );
}